//
//  YTOrderServices.m
//  YiTuDriverClient
//
//  Created by 石少庸 on 2017/5/31.
//  Copyright © 2017年 Yitu. All rights reserved.
//

#import "YTOrderServices.h"

@implementation YTOrderServices

+ (RACSignal *)loadOrderList:(NSDictionary *)dataDict {
    return [[self requestWithURL:@"orderlist/getPendingOrder" paramters:dataDict] replayLazily];
}

+ (RACSignal *)loadOrderDetailWithId:(NSString *)order_id {
    return [self requestWithURL:@"orderlist/getOrderDetail" paramters:@{@"orderId" : order_id}];
}

+ (RACSignal *)orderCheck:(NSString *)order_id {
    return [self requestWithURL:@"orderlist/getOrderDriverId" paramters:@{@"orderId" : order_id}];
}

+ (RACSignal *)loadTeamOrderList:(NSDictionary *)dataDict {
    return [self requestWithURL:@"orderlist/driverOrderList" paramters:dataDict];
}

+ (RACSignal *)getCarAndCoupon:(NSDictionary *)dataDict {
    return [[self requestWithURL:@"orderservice/getCarAndCoupon"
                       paramters:dataDict
                     isShowError:NO
                         isError:NO] replayLazily];
}

+ (RACSignal *)orderFlowWithOrderID:(NSString *)orderId {
    return [self requestWithURL:@"orderlist/getOrderFlow" paramters:@{@"orderId" : orderId}];
}

+ (RACSignal *)pickeOrderWith:(NSDictionary *)dataDict {
    return [self requestWithURL:@"orderservice/acceptOrder" paramters:dataDict isShowError:NO isError:NO];
}

@end
